<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="utf-8" />
	<title>我的咨询</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
	<meta name="format-detection" content="telephone=no" />
	<link type="text/css" rel="stylesheet" href="{weixin::$staticFilePath}/css/style.css" />
    <link type="text/css" rel="stylesheet" href="{weixin::$staticFilePath}/css/style1.css" />
    <link type="text/css" rel="stylesheet" href="/tpl/Wap/default/common/css/products/4/css/style.css" />
	<script src="{weixin::$staticFilePath}/js/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="{weixin::$staticFilePath}/js/main.js"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src='/tpl/Wap/default/js/share.js'></script>
    <script type="text/javascript">
	var title = "{weixin:$name}";
    var desc  = "{weixin:$wxshop.wxshop_desc}";
	var link  = "{weixin::C('site_url')}/index.php?g=Wap&m=Product&a=products&token={weixin:$_GET['token']}";
    var imgUrl = "{weixin::C('site_url')}/images/logo.png";
	var appId= '{weixin:$signPackage["appId"]}';
    var timestamp = '{weixin:$signPackage["timestamp"]}';
    var nonceStr = '{weixin:$signPackage["nonceStr"]}';
    var signature= '{weixin:$signPackage["signature"]}';
	$(function(){ 
  		share(title,desc,link,imgUrl,appId,timestamp,nonceStr,signature);
 	}); 
    </script>
    <style type="text/css">
	   th
	   {
		   color:white;
		   font-size:16px;
		   height:30px;
	   }
       th,td
        {
            border-bottom: solid #eee 1px;
        }
    </style>
    <script>
    function pay(order_sn){
        document.getElementById('order-notice_'+ order_sn).style.display='block';
    }
	</script>
</head>

<body style="line-height:1.6">
	<div class="u_main">
    <h2><center>我的咨询</center></h2>
    <volist name='consultations' id='c'>
    <div style="padding: 10px;">
    <div>日期：{weixin:$c.consult_time|date='Y-m-d',###}</div>
    <div style="width:90%; text-overflow: -o-ellipsis-lastline;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;">
     <a style="text-decoration: none;" href="{weixin::U('Userinfo/consultationInfo',array('token'=>$_GET['token'],'id'=>$c['id']))}">{weixin:$c.consult_desc}</a>
    </div>
    <div>咨询费：{weixin:$c.consult_fee}</div>
    <div>状态：{weixin:$c.strStatus}</div>
    <if condition="$c.status lt 2" >
		 <div class="fr discout" style="padding-right: 8px">		
					<a style="width:66px; height:24px;text-align:center;font-size:12px;background:none repeat scroll 0% 0% #0C0;color:#FFF;margin-top: 5px;line-height: 24px;font-weight: bolder;-moz-border-radius: 3px;-moz-border-radius: 3px;
		-webkit-border-radius: 3px;-webkit-border-radius: 3px;" 
		  	 		href="#" onclick="pay({weixin:$c['id']})">去支付</a> 
        		</div>	
	</if>
	
	<if condition="$c.status eq 7 or $c.status eq 9">
       <a href="{weixin::U('Userinfo/requestRefund',array('token'=>$_GET['token'],'id'=>$c['id']))}">申请退款</a>
	</if>
    </div>
    <div id="order-notice_{weixin:$c['id']}" class="mod_dialog" style="display:none; font-size:15px;">
                     	<div class="dialog_mask"></div>						
                     	<div class="dialog_main qb_br qb_tac">
                   			<div id="pay_area" class="pay_area" style="-webkit-transform-origin: 0px 0px; opacity: 1; -webkit-transform: scale(1, 1);">
							  <p><a href="{weixin::U('Userinfo/consultations',array('token'=>$_GET['token']))}"><img style="float:right;color:blue" src="{weixin::C('site_url')}/images/close.png" width="25px" height="25px"/></a></p>							 
							  <p class="use_pay" <if condition="$wxopen eq 0">style="display:none"</if>>
                                <button class="btn btn-info-wx btn-block mt10 J_payBtn" rel="alipay" type="button" value="微信支付" onclick='location.href="{weixin::U('Expert/wxpay',array('token'=>$_GET['token'],'wecha_id'=>$_SESSION['wecha_id'],'order_sn'=>$c['id'],'total_fee'=>$c['consult_fee']))}"'>微信支付</button>
                              </p>
                              <p class="use_pay" <if condition="$open eq 0">style="display:none"</if>>
                                 <button class="btn btn-info btn-block mt10 J_payBtn" rel="alipay" type="button" value="支付宝支付" onclick='location.href="{weixin::U('Expert/alipay',array('token'=>$_GET['token'],'wecha_id'=>$_SESSION['wecha_id'],'consult_id'=>$c['id']))}"'>支付宝支付</button>
                              </p>	
							</div>             			
             			</div>  
	  </div>	
    </volist>
    <div>
<if condition="!$consultations">
<div style="margin:10px; margin-top:30px; font-size:16px; color: #6C3"><center>您还没有咨询过问题</center></div>
</if>
    </div>
</div>
</body>